<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>文件上传示例</title>
    <link rel="stylesheet" href="demo.css"/>
</head>
<body>
<h3>文件上传（多个）</h3>
<p>所有文件共用一个name</p>
<form method="post" action="/upload" enctype="multipart/form-data">
    <input type="text" name="desc"/><br>
    <input type="file" name="file"/><br>
    <input type="file" name="file"/><br>
    <input type="submit" value="submit"/>
</form>
<hr>
<h3>文件上传1（多个）</h3>
<p>每个文件对应不同name</p>
<form method="post" action="/upload1" enctype="multipart/form-data">
    <input type="text" name="desc"/><br>
    <input type="file" name="file1"/><br>
    <input type="file" name="file2"/><br>
    <input type="submit" value="submit"/>
</form>
<hr>
<h3>文件上传2（并保存）</h3>
<form method="post" action="/upload2" enctype="multipart/form-data">
    <input type="text" name="desc"/><br>
    <input type="file" name="file"/><br>
    <input type="submit" value="submit"/>
</form>
</body>
</html>
